/**
 * Copyright © 2021-2025 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.resource.domain;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.jeeplus.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
 * 场地状态Entity
 * @author 淋漓
 * @version 2024-08-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("uip_venue_status")
public class VenueStatus extends BaseEntity {

	private static final long serialVersionUID = 1L;


	/**
     * 场地编号
     */
	private String venueId;

	/**
     * 日期
     */
	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	private Date date;

	/**
     * 8：30-10：05
     */
	private String am1;

	/**
     * 10：25-12：00
     */
	private String am2;

	/**
     * 14：30-16：05
     */
	private String pm1;

	/**
     * 16：15-17：50
     */
	private String pm2;

	/**
     * 18：30-19：05
     */
	private String night1;

	/**
     * 19：15-20：50
     */
	private String night2;

	public VenueStatus() {
	}
	public VenueStatus(Venu venue) {
		this.venueId = venue.getId();
		Calendar calendar = new GregorianCalendar();
		calendar.setTime(new Date());
		calendar.add(Calendar.DATE,+14);
		this.date = calendar.getTime();
		this.am1 = "空闲";
		this.am2 = "空闲";
		this.pm1 = "空闲";
		this.pm2 = "空闲";
		this.night1 = "空闲";
		this.night2 = "空闲";
	}
}
